#include using namespace std; int stringLength(char s[]) { int result = 0; //NULL is the address 0 //0 is the number 0 //\0 is the char 0 - aka null terminator while(s[result] != '\0') { result++; } return result; } void stringCopy(char destination[], char source[]) { } void main() { int A[4] = {1,2,3,4}; //char words[50] = {'E','M', 'M', 'A', '\0'}; char words[50] = "Emma"; //null terminator - the special char that markes the end of a string // has an ASCII value of 0 // \0 - escape sequence for the null terminator // c-style string - an array of char with a null terminator //cout << A << endl; cout << words << endl; cin >> words; //cin >> stops reading at the first whitespace cout << words << endl; cout << stringLength(words) << endl; cin.getline(words,50); cout << words << endl; cout << stringLength(words) << endl; char B[50]; stringCopy(B, words); cout << B << endl; }